package com.edu.app.util;

import org.apache.shiro.crypto.hash.SimpleHash;
import org.apache.shiro.util.ByteSource;

public class SecurityUtil {
    public static String getEncryptCode(String str, String salt){
        SimpleHash obj = new SimpleHash("MD5", str, ByteSource.Util.bytes(salt), 2);
        return obj.toString();
    }
}
